package com.cashmama.market.api.domain.service;

import com.qianli.cashmama.trade.client.trade.response.TradeInfoRO;
import com.qianli.cashmama.trade.client.trade.response.TradeInfoResponse;
import com.qianli.cashmama.trade.client.vo.BillVO;
import com.qianli.cashmama.trade.client.vo.TradeVO;

import java.util.List;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2019-12-23 16:19
 **/
public interface ApiTradeService {
    /**
     * 是否新用户
     * @param userCode
     * @return
     */
    boolean isNewUser(String userCode, String merchantCode);

    List<BillVO> getRepayOrderBills(String userCode, String productCategory, String type);

    List<BillVO> getRepayOrderBills(List<String> billNos);

    List<BillVO> getRepayOrderBills(String tradeNo, String userCode, String productCategory, String type);

    void completeHighMark(String tradeNo);

    List<TradeVO> getTradeListByUserCodes(List<String> userCodes);

    List<TradeVO> getTradeListByUserCode(String userCode);

    List<BillVO> getBillListByUserCodes(List<String> userCodes);

    TradeInfoRO getTradeInfoByMerchantCodeAndUserCode(String merchantCode, String userCode);

    List<TradeVO> getTradeInfoListByUserCode(String userCode);

    TradeInfoResponse getTradeInfoByTradeNo(String tradeNo);


}
